Change OstreeFetcher to be dirfd-relative
authorColin Walters <walters@verbum.org>
Thu, 15 Jan 2015 03:04:06 +0000 (22:04 -0500)
committerColin Walters <walters@verbum.org>
Thu, 15 Jan 2015 03:12:08 +0000 (22:12 -0500)
commit9020fe25473ee9f71aad416f01de040574e2052f
tree9eb96816b9d1bde63d6258ed06ece7034d4a859c
parenta7300a828db26749e79d2e290eb561698d84655a
Change OstreeFetcher to be dirfd-relative

This is a noticeable cleanup, and fixes another big user of GFile* in
performance/security sensitive codepaths.

I'm specifically making this change because the static deltas code was
leaking temporary files, and cleaning that up nicely would be best if
we were fd relative.
src/libostree/ostree-fetcher.c
src/libostree/ostree-fetcher.h
src/libostree/ostree-metalink.c
src/libostree/ostree-metalink.h
src/libostree/ostree-repo-pull.c
src/libotutil/ot-variant-utils.c
src/libotutil/ot-variant-utils.h